extends SubViewport
class_name OtherPlayerView

@onready var scoreLabel = $UI/ScoreLabel
@onready var tetrisRegion:TetrisRegion = $TetrisRegion
var user

func setUser(userData):
	user = userData


func getUser():
	return user
	

func updateScore(score):
	scoreLabel.text = "得分：" + str(score)


func updateView(blocksData):
	tetrisRegion.updateOtherPlayerView(blocksData)


func getViewportTexture():
	return get_texture()
